<%@page import="model.Produksi"%>
<%@ include file="header.jsp"%>
<%@page import="java.util.List"%>
<%@page import="database.DBClass"%>


<% Produksi bean = new Produksi();
    //get request from servlet if data is invalid

    if (request.getAttribute("updateuser") != null) {
        bean = (Produksi) request.getAttribute("updateuser");
    }
%>

<!-- start: Content -->
<div id="content" class="span10">


    <ul class="breadcrumb">
        <li>
            <i class="icon-home"></i>
            <a href="index.jsp">Home</a>
            <i class="icon-angle-right"></i> 
        </li>
        <li>
            <i class="icon-edit"></i>
            <a href="#">Forms</a>
        </li>
    </ul>



    <div class="row-fluid sortable">
        <div class="box span12">
            <div class="box-header" data-original-title>
                <h2><i class="halflings-icon edit"></i><span class="break"></span>Form Produksi</h2>

            </div>
            <div class="box-content">
                <form class="form-horizontal" method="post" action="ProduksiServlet">
                    <fieldset>

                        <div class="control-group success">

                            <div class="controls">
                                <input class="input-xlarge" type="hidden" id="id" name="id" value="<%=bean.getProduksiId()%>" <%=request.getAttribute("updateuser") != null ? "readonly" : ""%>>

                            </div>
                        </div>
                        <div class="control-group success">
                            <label class="control-label" for="nama">Jumlah Produksi :</label>
                            <div class="controls">
                                <input class="input-xlarge" type="text" id="jmlProdksi" name="jmlProduksi" data-validation="required number" data-validation-error-msg="Jumlah produksi harus diisi dengan angka" value="<%=bean.getJumlahPrduksi()%>">

                            </div>
                        </div>

                        <div class="control-group success">
                            <label class="control-label" for="tanggal">Tanggal:</label>
                            <div class="input-group date form_date controls" data-date-format="yyyy-mm-dd hh:mm:ss" data-link-format="yyyy-mm-dd hh:mm:ss">
                                <input class="input-xlarge" data-validation="required" data-validation-error-msg="Tanggal harus diisi" size="16" type="text" readonly id="tanggal" name="tanggal" placeholder="Tanggal produksi" required value="<%=bean.getTgl()%>">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                            </div>

                        </div>
                        <div class="control-group success">
                            <label class="control-label" for="inputSuccess">Biaya Produksi:</label>
                            <div class="controls">
                                <input class="input-xlarge" type="text" id="biayaProduksi" data-validation="required number" data-validation-error-msg="Biaya produksi harus diisi dengan angka" name="biayaProduksi" value="<%=bean.getBiaya()%>">
                                
                            </div>
                        </div>

                        <div class="form-actions">
                            <button type="submit" class="btn btn-primary" name="action" value="<%=bean.getAction()%>"><%=bean.getAction()%></button>
                            <button class="btn">Cancel</button>
                        </div>
                    </fieldset>
                </form>

            </div>
        </div><!--/span-->

    </div><!--/row-->




</div><!--/.fluid-container-->

<!-- end: Content -->
</div><!--/#content.span10-->
</div><!--/fluid-row-->

<%@ include file="footer.jsp"%>